package com.zsh.weather.ln

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Message
import com.zsh.weather.ln.home.HomeActivity
class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }
    override fun onResume() {
        super.onResume()
        mHandler.sendEmptyMessageDelayed(1, 1500)
    }

    var mHandler = object : Handler() {
        override fun handleMessage(msg: Message) {
            startActivity(Intent(this@MainActivity, HomeActivity::class.java))
            finish()
        }
    }
}